﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AccountSite.Master" Inherits="System.Web.Mvc.ViewPage<TimeTableManagement.Entities.ResetPassword>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    ResetPassword
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>Reset Password</h2>
<% if (ViewData["isreset"].Equals("yes"))
   { %>
<p>Your password is: <span style="font-size: large; color: #FF0000"><strong><%: ViewData["yourpass"]%></strong></span></p>
<p><span> <%: Html.ActionLink("Logon and change password now!", "Logon", "Account")%></span></p>
   <% }
   else
   { %>
<% using (Html.BeginForm())
   { %>
       <div id="login-box-name" style="margin-top:20px;"><%: Html.LabelFor(m => m.username)%></div>
    <div id="login-box-field" style="margin-top:20px;">
        <input id="username" name="username" class="form-login" title="Username" value="" size="30" maxlength="2048" />
        <%: Html.ValidationMessageFor(m => m.username)%>
    </div>
    <div id="login-box-name"><%: Html.LabelFor(m => m.email)%></div>
    <div id="login-box-field">
        <input  id="email" name="email" class="form-login" title="Email" value="" size="30" maxlength="2048" />
        <%: Html.ValidationMessageFor(m => m.email)%>
    </div>
<br />
<br />
    <asp:Button ID="Button1" runat="server" Text="Reset Now" width="103" height="42" style="margin-left:90px;"  />
<div><a href="/">Back to home page</a> </div>
   <% }
   }
    %>
</asp:Content>
